﻿using Abp.Application.Services.Dto;
using SingleUserMall.Common;
using SingleUserMall.Orders.Form;
using SingleUserMall.Orders.VO;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SingleUserMall.Orders
{
    /// <summary>
    /// 订单管理
    /// </summary>
    [Description("订单管理")]
    public interface IOrderManageAppService : IManageService
    {
        /// <summary>
        /// 获取订单管理列表
        /// </summary>
        /// <param name="form"></param>
        /// <returns></returns>
        Task<PagedResultDto<OrderMiniVO>> GetOrdersAsync(OrderSearchForm form);

        /// <summary>
        /// 获取果树订单管理列表
        /// </summary>
        /// <param name="form"></param>
        /// <returns></returns>
        Task<PagedResultDto<OrderDividendMiniVO>> GetTreeOrdersAsync(OrderSearchForm form);

        /// <summary>
        /// 获取订单详情
        /// </summary>
        /// <param name="form"></param>
        /// <returns></returns>
        Task<OrderVO> GetOrderAsync(SingleId<long> form);
        /// <summary>
        /// 设定订单已发货
        /// </summary>
        /// <param name="form"></param>
        /// <returns></returns>
        Task SetOrderSentAsync(OrderSentForm form);
        /// <summary>
        /// 设置订单已收货
        /// </summary>
        /// <param name="form"></param>
        /// <returns></returns>
        Task SetOrderReceivedAsync(SingleId<long> form);
    }
}
